/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.za.mbasa.desingPatters.factoryMethod;

/**
 *
 * @author 208155937
 */
public class AnimalFacotry {

    public Animal getAnimal(String type) {
        if ("canine".equals(type)) {
            return new Dog();
        } else {
            return new Cat();


        }
    }
}